<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="m_head.jsp"%>
<%
		String id = request.getParameter("id");
		if(id == null) id = admin.getId()+"";
		Admin temp = AdminManager.getInstance().getAdminById(id);
		List<CzLog> logs = temp.getCzLogs();
%>
<body>
	<div data-role="page" id="pageone">
		<div data-role="header">
	        <h1>充值日志</h1>
	        <a href="#myPanel" data-icon="bars" data-shadow="false" data-iconshadow="false">菜单</a>
	    </div>
		<div role="main" class="ui-content">
			<div class="ui-grid-b">
		      <div class="ui-block-a" style="border:1px solid black;"><span>日期</span></div>
		      <div class="ui-block-b" style="border:1px solid black;"><span>充值数量</span></div>
		      <div class="ui-block-c" style="border:1px solid black;"><span>充值后数量</span></div>
		    </div>
		    <% 
							for(int i = 0;i < logs.size();i++){
								CzLog gn = logs.get(i); 
						%>
						<div class="ui-grid-b">
					      <div class="ui-block-a" style="border:1px solid black;"><span><%=gn.getDate()%></span></div>
					      <div class="ui-block-b" style="border:1px solid black;"><span><%=gn.getGold()%></span></div>
					      <div class="ui-block-c" style="border:1px solid black;"><span><%=gn.getNewGold()%></span></div>
					    </div>
			    <%
							}
						%>
		</div>
		<%@include file="m_order.jsp"%>
	</div>
</body>
</html>